package com.wy.panda.config;

import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.session.web.http.HttpSessionIdResolver;

import com.wy.panda.common.http.PandaHttpSessionIdResolver;

/**
 * Spring Session配置
 * @author wangyuan
 * @since 2021年3月13日 上午2:20:46
 */
@EnableRedisHttpSession
public class HttpSessionConfig {

    @Bean
    public HttpSessionIdResolver httpSessionIdResolver() {
        return PandaHttpSessionIdResolver.instance();
    }
}
